package database.domain;

public class UserLoginStatus {
    private Integer user_id;
    private String user_name;
    private Boolean user_status;

    public UserLoginStatus() {
    }

    public UserLoginStatus(Integer user_id, String user_name, Boolean user_status) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.user_status = user_status;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public Boolean getUser_status() {
        return user_status;
    }

    public void setUser_status(Boolean user_status) {
        this.user_status = user_status;
    }

    public String isOnline(){
        return user_status?"online":"offline";
    }



    @Override
    public String toString() {
        return "UserLoginStatus{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", user_status=" + isOnline() +
                '}';
    }
}
